cmake_minimum_required(VERSION 2.6)
project(jadesoul)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")

#add_subdirectory
add_subdirectory(jadesoul)
add_subdirectory(ml)

#include_directories
include_directories(../include)

#for each target
add_executable(jadesoul jadesoul.cpp)
add_custom_command(
	TARGET jadesoul
	POST_BUILD
	COMMAND python ${CMAKE_SOURCE_DIR}/scripts/move_target.py ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} jadesoul
	COMMENT "Postbuild action : move target jadesoul"
)

add_executable(ml ml.cpp)
add_custom_command(
	TARGET ml
	POST_BUILD
	COMMAND python ${CMAKE_SOURCE_DIR}/scripts/move_target.py ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ml
	COMMENT "Postbuild action : move target ml"
)
